import request from '@/utils/request'

// 查询列表
export function listCheckup(query) {
  return request({
    url: '/kmwlpts/checkup/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getCheckup(id) {
  return request({
    url: '/kmwlpts/checkup/' + id,
    method: 'get'
  })
}

// 新增
export function addCheckup(data) {
  return request({
    url: '/kmwlpts/checkup',
    method: 'post',
    data: data
  })
}

// 修改
export function updateCheckup(data) {
  return request({
    url: '/kmwlpts/checkup',
    method: 'put',
    data: data
  })
}

// 删除
export function delCheckup(id) {
  return request({
    url: '/kmwlpts/checkup/' + id,
    method: 'delete'
  })
}

// 查询单证信息
export function getBindingRoadTransport(billCode) {
  return request({
    url: '/kmwlpts/bills/selectGBills/' + billCode,
    method: 'get'
  })
}


//申报单证
export function declareCheckup(id) {
  return request({
    url: '/kmwlpts/checkup/declare/' + id,
    method: 'post'
  })
}
